package me.luger.project.fof.entity;


import me.luger.core.dao.nutz.entity.BaseEntity;
import me.luger.core.dao.nutz.entity.NutzTransient;
import org.nutz.dao.entity.annotation.*;
import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;

@Table("fof_user_info")
public class UserInfo extends BaseEntity implements Serializable{
private static final long serialVersionUID=1L;


    /**
     * 用户唯一标识
     */
    @Id
    @Column("id")
    @Comment("用户唯一标识")
    @ColDefine(type = ColType.INT, width = 10)
    private Integer id;
    /**
     * 用户姓名
     */
    @Column("name")
    @Comment("用户登录名")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String name;

    /**
     * 用户姓名
     */
    @Column("username")
    @Comment("用户姓名")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String username;
    /**
     * 用户角色ID
     */
    @Column("roleId")
    @Comment("用户角色ID")
    @ColDefine(type = ColType.INT, width = 10)
    private Integer roleId;
    /**
     * 用户邮箱
     */
    @Column("email")
    @Comment("用户邮箱")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String email;
    /**
     * 用户电话号码
     */
    @Column("phone")
    @Comment("用户电话号码")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String phone;
    /**
     * 用户地址
     */
    @Column("address")
    @Comment("用户地址")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String address;
    /**
     * 用户所属公司ID
     */
    @Column("companyId")
    @Comment("用户所属公司ID")
    @ColDefine(type = ColType.INT, width = 10)
    private Integer companyId;

    /**
     * 用户地址
     */
    @Column("password")
    @Comment("用户密码")
    @ColDefine(type = ColType.VARCHAR, width = 255)
    private String password;

    @NutzTransient
    private String companyName;

    public void setId(Integer id){
        this.id=id;
    }
    public Integer getId(){
        return this.id;
    }

    public void setName(String name){
        this.name=name;
    }
    public String getName(){
        return this.name;
    }

    public void setRoleId(Integer roleId){
        this.roleId=roleId;
    }
    public Integer getRoleId(){
        return this.roleId;
    }

    public void setEmail(String email){
        this.email=email;
    }
    public String getEmail(){
        return this.email;
    }

    public void setPhone(String phone){
        this.phone=phone;
    }
    public String getPhone(){
        return this.phone;
    }

    public void setAddress(String address){
        this.address=address;
    }
    public String getAddress(){
        return this.address;
    }

    public void setCompanyId(Integer companyId){
        this.companyId=companyId;
    }
    public Integer getCompanyId(){
        return this.companyId;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }
}